<admintpl file="header"/>
</head>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
	.current{background-color:rgba(0,255,150,0.5);}
	.prev,.num,.next,
	.current{width:auto;height:auto;
	margin:4px;padding:8px 20px;
	box-shadow:0 0 2px rgba(0,0,0,0.6);
	background-color:rgba(255,255,255,0.1);}
</style> 
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('Admin/Movement/lists1')}">通知列表</a></li>
		<li><a href="{:U('Admin/Movement/add1')}">创建系统通知</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Admin/Movement/serachlists1')}">
        通知标题：
        <input type="text" name="title" style="width:150px;height:35px" value="{$value.title}" placeholder="标题...">
        发布时间：
		<input type="text" name="time" style="width:150px;height:35px" value="{$value.time}" id="time" placeholder="时间...">
		发布状态：
		<select class="select_2" name="status" id="status" style="width: 105px;">
				<option value="0">发送失败</option>
				<option value="1">发送成功</option>	
	    </select>
        <input type="submit" name="query_form_btn" class="btn btn-primary" value="查询"/>
		<a href="{:U('Admin/Movement/add1')}"><input type="button" name="query_form_btn" class="btn btn-primary" value="创建系统通知"/></a><br/><br/>
    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>ID</th>
                <th>通知标题</th>
                <th>发布时间</th>
                <th>发布人数</th>
                <th>发布状态</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.id}</td>
					<td><a href='{:U("Admin/Movement/moremany1",array("user_id"=>$vo["id"]))}'>{$vo.title}</a></td>
					<td>{$vo.send_date}</td>
					<td>{$vo.send_num}</td>
					<td>
						   <if condition="$vo.status eq 0 ">发送失败&nbsp;&nbsp;&nbsp;
						   <a href='{:U("Admin/Movement/update1",array("id"=>$vo["id"]))}'>重新操作</a>
						<elseif condition="$vo.status eq 1 "/> 发送完毕
						<else />
						</if>
					</td>
                </tr>
            </foreach>
            </tbody>
        </table>
		<div class="green-black">
		　　{$page}
		</div>
    </form>
</div>
</body>
</html>
<script src="__PUBLIC__/js/2.1.4jquery.js"></script>
<script src="__PUBLIC__/jsDate/jedate.js"></script>
<script type="text/javascript">
	//$(function(){ 
		jeDate({
		dateCell:"#time",
		format:"YYYY-MM-DD hh:mm:ss",
		isinitVal:false,
		isTime:true, //isClear:false,
		minDate:"2014-09-19 00:00:00",
		okfun:function(val){alert(val)}
		})
		//$("#type").find('option[value="'+{$value.type}+'"]').attr("selected",true);
		//$("#status").find('option[value="'+{$value.status}+'"]').attr("selected",true);
	//});
</script>